home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / comms / textvu10.zip / TEXTVU.DOC < prev    next >
Text File  |  1993-08-23  |  2KB  |  56 lines

  1. (***********************************************************************
  2.   A Much Faster Terminal for Turbo Vision, v1.0
  3.   PJB August 22, 1993
  4.   Twice as fast, less code
  5.   Free source - no warranty
  6.  
  7.   All comments, postcards, money and bug reports welcome.
  8.  
  9.   Internet mail:
  10.  
  11.      d91-pbr@nada.kth.se
  12.  
  13.   Snail mail:
  14.  
  15.   Peter Brandström
  16.   Roslagsgatan 10
  17.   S-113 55 Stockholm
  18.   Sweden, Europe
  19.  
  20. ***********************************************************************)
  21.  
  22. TextVu is a faster replacement for TextView. They don't work quite in
  23. the same way, as explained below. You are free to use the code any way
  24. you see fit, but I would appreciate bug reports and general comments.
  25.  
  26. TextVu was developped with TP6 using the BP7 TextView source, and tested
  27. with TP6 and TP7, so it should work with both TP6 and T/BP7 (right?).
  28.  
  29. TFastTerminal is slightly different from TTerminal since it stores the
  30. length of each line instead of using trailing line feeds. This means
  31. that you could write a function such as
  32.  
  33.   function TFastTerminal.GetLine(Line:word):string;
  34.   begin
  35.     GetLine:=PString(Buffer^[NextLines(QueBack, Line-1)])^;
  36.   end;
  37.  
  38. to retrieve a line of text from the buffer. I also removed the cursor as
  39. I didn't like it, and there is no blank line at the bottom.
  40.  
  41. TextVu inherits a lot of junk from TTerminal, so you still need the old
  42. unit. All the methods included in TextVu are faster and smarter
  43. replacements of the TTerminal ones. The unit uses slightly less memory
  44. and redraw speed is twice as fast (really zippy). There is no longint
  45. arithmetic and no PrevLines any more, but NextLines is so much faster.
  46. Remember that you need the old TextView...
  47.  
  48. For a demonstration, compile the accompanying DEMO.PAS (from TP6,
  49. the original TVTXTDMO.PAS except it uses TFastTerminal instead) and type
  50. "DEMO textvu.pas".
  51.  
  52. I am considering enhancing it further, maybe another interface than the
  53. AssignCrt way? Does any one really use TTerminal? If you do, write me.
  54.  
  55. Have Fun!
  56.